/* 各个页面相同的样式表 : 头, 尾部 */


/* 版心: 宽度不一样 */

.wrapper {
    width: 1240px;
    margin: 0 auto;
}


/* 快捷导航：设置高度和背景色 */

.shortcut {
    height: 52px;
    background-color: #333;
}


/* ul的右浮动 */

.shortcut .wrapper ul {
    float: right;
}


/* li左浮动，设置行高 */

.shortcut .wrapper li {
    float: left;
    line-height: 52px;
}


/* 设置li中字体/大小/设置每个的字之间水平间距 ，border-right间隔线*/

.shortcut .wrapper a {
    padding: 0 16px;
    border-right: 1px solid #666;
    font-size: 14px;
    color: #dcdcdc;
}


/* 小手机-精灵图：display将该标签转换为行内标签。width/height设置标签的宽高，
background-position精灵图， vertical-align文字与图片水平排列，margin-right左间距*/

.shortcut .wrapper a span {
    display: inline-block;
    margin-right: 8px;
    width: 11px;
    height: 16px;
    background-image: url(../images/sprites.png);
    background-position: -160px -70px;
    vertical-align: middle;
}


/* 清除a的边框：最后一个li里面的a */

.shortcut .wrapper li:last-child a {
    border: 0;
}


/* 头部 */

.header {
    margin: 30px auto;
    height: 70px;
}

.logo {
    float: left;
    width: 207px;
    height: 70px;
}


/* logo搜索引擎优化做法 */

.logo h1 {
    width: 207px;
    height: 70px;
}

.logo h1 a {
    display: block;
    width: 207px;
    height: 70px;
    background-image: url(../images/logo.png);
    background-size: contain;
    /* 目的：让h1里面的字看不见 */
    font-size: 0;
}

.nav {
    float: left;
    margin-left: 40px;
    height: 70px;
}

.nav li {
    float: left;
    margin-right: 48px;
    line-height: 70px;
}

.nav li a {
    padding-bottom: 7px;
}

.nav li a:hover {
    color: #27ba9b;
    border-bottom: 1px solid #27ba9b;
}

.search {
    position: relative;
    float: left;
    margin-left: 34px;
    margin-top: 24px;
    width: 172px;
    height: 30px;
    border-bottom: 2px solid #e7e7e7;
}

.search input {
    padding-left: 30px;
    width: 172px;
    height: 28px;
}

.search input::placeholder {
    font-size: 14px;
    color: #ccc;
}

.search span {
    /* 绝对定位，盒子具备行内块特点 */
    position: absolute;
    left: 2px;
    top: 0;
    /* display: inline-block; */
    width: 18px;
    height: 18px;
    background-image: url(../images/sprites.png);
    background-position: -79px -69px;
}

.car {
    position: relative;
    float: left;
    margin-top: 28px;
    margin-left: 15px;
    width: 23px;
    height: 23px;
    background-image: url(../images/sprites.png);
    background-position: -119px -69px;
}

.car span {
    /* 绝对定位，盒子具备行内块特点 */
    position: absolute;
    right: -13px;
    top: -6px;
    width: 20px;
    height: 15px;
    background-color: #e26237;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    text-align: center;
    line-height: 15px;
}